﻿<!DOCTYPE html>

<html>
    <head>
        <title>@ViewBag.Title</title>
        <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/jquery-ui.css")" rel="stylesheet" type="text/css" />

        <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>

        <script type="text/javascript">
            function focusNextField() {
                if (event.keyCode == 13) {
                    var fields = Array.prototype.slice.call(document.getElementsByTagName('input'));
                    var index = fields.indexOf(document.activeElement);

                    if (index > -1 && index + 1 < fields.length) {
                        for (var i = index + 1; i < fields.length; i++) {

                            if (fields[i].type == 'text') {
                                fields[i].focus();
                                break;
                            }
                        }
                    }
                }
            }
        </script>
    </head>

    <body onkeydown="focusNextField()">
        <img src="@Url.Content("~/Content/Images/Experimental.png")" alt="" style="position: absolute; left: 0px; top: 0px; z-index: -1" />

        <div id="header">
            <div id="title">
                <h1>
                    <img src="/Content/images/Food.png" alt="Main" height="30px" />
                    Retete - @ViewBag.Title
                </h1>
            </div>

            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>

            <div id="menucontainer">
                <ul id="menu">
                    <li>@Html.ActionLink("Vanzare noua", "Create", "Vanzari")</li>
                    <li>@Html.ActionLink("Lista vanzari", "Index", "Vanzari")</li>
                    <li>@Html.ActionLink("Meniuri", "Index", "Meniuri")</li>
                    <li>@Html.ActionLink("Retete", "Index", "Retete")</li>
                    <li>@Html.ActionLink("Receptii", "Index", "Receptii")</li>
                    <li>@Html.ActionLink("Inventar", "Index", "Inventar")</li>
                </ul>
            </div>
        </div>

        <div id="main">
            @RenderBody()
            <div id="footer">&copy; @DateTime.Now.Year</div>
        </div>
    </body>
</html>